package com.wuzhipeng.heart.user.dao.mapper;

import com.wuzhipeng.heart.user.dao.entity.Status;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wuzhipeng
 * @since 2024-12-25
 */
public interface StatusMapper extends BaseMapper<Status> {

    @Insert("INSERT INTO status (phone,queryCount) VALUES (#{therapistPhone}, 0) ON DUPLICATE KEY UPDATE queryCount = queryCount + 1")
    void updateConsultCount(String therapistPhone);
}
